From: Ray Strode Date: Wed, 21 Jul 2021 18:01:48 +0000 (-0400) Subject: shellEntry: Don't show "Show Password" menu if entry icon is disabled X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~164 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a4123887c1e129c28eb962d51c2ad05ff9e2ccfb;p=gnome-shell.git shellEntry: Don't show "Show Password" menu if entry icon is disabled Right now the Show Password menu is shown unconditionally for password entries, ignoring the org.gnome.desktop.lockdown disable-show-password key. StShellEntry now honors that key for its peek icon, and there's little reason for the peek icon and the menu to ever be out of sync. This commit forces the menu and the icon to always be in sync, and so makes the menu lock down work automatically, too. Part-of: --- diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index 38f5a836d..a2010b39e 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -39,6 +39,10 @@ var EntryMenu = class extends PopupMenu.PopupMenu { item.connect('activate', this._onPasswordActivated.bind(this)); this.addMenuItem(item); this._passwordItem = item; + + this._entry.bind_property('show-peek-icon', + this._passwordItem, 'visible', + GObject.BindingFlags.SYNC_CREATE); } open(animate) {